
#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Volume.h>
#include <ExportVolumeUnit.h>


USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Volume)
{
	TEST(should be able to compare tbsp w/  tps)
        {
		ASSERT_EQ(Volume(1,TBSP), Volume(3,TSP));
	}
	TEST(should be able to compare oz w/ tps )
        {
		ASSERT_EQ(Volume(1, OZ), Volume(6,TSP));
	}
	TEST(should be able to compare oz w/ tbsp )
        {
		ASSERT_EQ(Volume(1, OZ), Volume(2,TBSP));
	}

	TEST(should be able to add tbsp w/  tps)
        {
		ASSERT_EQ(Volume(1,TBSP) + Volume(1,TSP), Volume(4,TSP));
	}
	TEST(should be able to add oz w/ tps )
        {
		ASSERT_EQ(Volume(1, OZ) + Volume(1,TSP), Volume(7, TSP));
	}
	TEST(should be able to compare oz w/ tbsp )
        {
		ASSERT_EQ(Volume(1, OZ) + Volume(1,TBSP), Volume(3, TBSP));
	}

};
